<template>
  <div>
    <div id="app">
      <div>
        <v-header :role="roles" :userName="username" :isFriendshipLinkClick="isClick" ></v-header>
      </div>
      <div class="contentCom">
        <!--<keep-alive><router-view></router-view></keep-alive>-->
        <router-view></router-view>
      </div>
      <div class="footerCom">
        <v-footer @show-friend="show()"></v-footer>
      </div>
    </div>
  </div>
</template>

<script>
  import header from './components/header/header.vue'
  import footer from './components/footer/footer.vue'

  export default {
    components: {
      'v-header': header,
      'v-footer': footer
    },
    data () {
      return {
        isClick: false,
        roles: 'root',
        username: ''
      }
    },
    methods: {
      show () {
        this.isClick = true
      }
    }
  }
</script>

<style lang="stylus" rel="stylesheet/stylus" scoped>

</style>
